|
Public Member Functions
|
virtual const mudbox::ClassDesc
* |
RuntimeClass (void)
const |
|
TreeNode (void) |
|
~TreeNode (void) |
virtual void |
Serialize (Stream &s) |
virtual void |
AddChild (TreeNode *pChild, bool
bFirst=false) const |
|
Adds a node/subtree to the list of children.
The added node will be removed from the current parent if it has
one.
|
virtual void |
RemoveChild (TreeNode *pChild)
const |
|
Removes a node/subtree from the list of
children.
|
virtual TreeNode * |
FirstChild (void)
const |
|
Returns the first node from the child list.
|
virtual TreeNode * |
Parent (void) const |
|
Returns the parent node.
|
virtual TreeNode * |
NextSibling (void)
const |
|
Returns the next linked node with the same
parent.
|
virtual TreeNode * |
PrevSibling (void)
const |
|
Returns the previous linked node with the
same parent.
|
virtual TreeNode * |
ChildByClass (const
ClassDesc
*pClass, bool bAutoCreate=true) const |
|
Returns the first child with the specified
type. When the bAutoCreate parameter is true and such a child does
not exists, it creates it with the preferred descedant type.
|
template<typename type> |
type * |
ChildByClass (bool
bAutoCreate=true) const |
|
Same as above, a most confortable version.
|
virtual TreeNode * |
ChildByClass (const
ClassDesc
*pClass, unsigned int iIndex=0) const |
|
Returns the first child with the specified
type, or returns zero if no child found.
|
template<typename type> |
type * |
ChildByClass (unsigned int
iIndex=0) const |
|
Same as above, a most confortable version.
|
virtual void |
DeleteChildByClass (const
ClassDesc
*pClass) |
|
Deletes all child which is derived from a
specific class.
|
virtual QString |
Info (void) const |
|
Returns descriptive information about the
node.
|
virtual bool |
Visible (void) const |
|
Returns if the node is visible. Should be
overridden in derived classes.
|
virtual void |
SetVisible (bool b) |
|
Sets the node visibility Should be
overridden in derived classes.
|
virtual bool |
Locked (void) const |
|
Returns if the node is locked. Should be
overridden in derived classes.
|
virtual void |
SetLocked (bool b) |
|
Sets the locking of the node. Should be
overridden in derived classes.
|
virtual void |
OnLinked (const TreeNode
*pOldParent) |
|
This function is called then the node is
linked to a new parent.
|
Static Public Member Functions
|
const mudbox::ClassDesc
* |
StaticClass (void) |
mudbox::Node
* |
CreateInstances (unsigned
int iCount=1) |
mudbox::TreeNode mudbox::TreeNode
mudbox::TreeNode mudbox::TreeNode mudbox::TreeNode mudbox::TreeNode
mudbox::TreeNode mudbox::TreeNode mudbox::TreeNode
mudbox::TreeNode
mudbox::TreeNode mudbox::TreeNode
mudbox::TreeNode mudbox::TreeNode mudbox::TreeNode mudbox::TreeNode
mudbox::TreeNode mudbox::TreeNode mudbox::TreeNode
mudbox::TreeNode